package mshop.com.schild_kotlin.mvp.base

import android.content.Context
import com.tt.lvruheng.eyepetizer.network.ApiService
import com.tt.lvruheng.eyepetizer.network.RetrofitClient

/**
 * Created by mayi on 2018/5/27.
 * @Autor CaiWF
 * @Email 401885064@qq.com
 * @TODO
 */
abstract class BaseModel{

    fun getApiService(mContext: Context):ApiService{
        val retrofitClient = RetrofitClient.getInstance(mContext, ApiService.BASE_URL)
        val apiService = retrofitClient.create(ApiService::class.java) as ApiService
        return apiService
    }


}